package cn.netctoss.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.netctoss.dao.AdminDAO;
import cn.netctoss.entity.Cost;


@Service("findAllCost")
public class FindCostServiceImpl implements FindCostService {

	@Resource(name="adminDAO")
	private AdminDAO aDAO;
	
	public List<Cost> findAllCost() {
		List<Cost> list = aDAO.findAll();
		if(list==null){
			//资费查询失败,
			throw new RuntimeException();
		}
		
		return list;
	}

}










